/*
 * Copyright (c) 2008-2012 Matthijs Hollemans.
 * With contributions from π.
 * Licensed under the terms of the MIT license.
 */

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <OpenAL/al.h>
#import <OpenAL/alc.h>

#define NUM_SOURCES 32


@interface SoundBankPlayer : NSObject<AVAudioSessionDelegate>


@property (nonatomic, assign) BOOL loopNotes;

- (void)setSoundBank:(NSString *)soundBankName;

- (void)noteOn:(int)midiNoteNumber gain:(float)gain;
- (void)queueNote:(int)midiNoteNumber gain:(float)gain;
- (void)playQueuedNotes;
- (void)noteOff:(int)midiNoteNumber;
- (void)allNotesOff;

@end
